ab5338b3653b8dd437fecbe50e6c188db8b854a7,platform/lang-impl/src/com/intellij/refactoring/ui/RefactoringDialog.java,RefactoringDialog,createActions,#,110

Before Change



  protected Action[] createActions() {
    if (hasHelpAction ())
      return new Action[]{getRefactorAction(), getPreviewAction(), getCancelAction(), getHelpAction()};
    else
      return new Action[]{getRefactorAction(), getPreviewAction(), getCancelAction()};
  }

After Change


  }

  protected Action[] createActions() {
    List<Action> actions = new ArrayList<Action>();
    actions.add(getRefactorAction());
    if(hasPreviewButton()) actions.add(getPreviewAction());
    actions.add(getCancelAction());

    if (hasHelpAction ())
      actions.add(getHelpAction());
    return actions.toArray(new Action[actions.size()]);
  }

  protected Project getProject() {